quit -sim

set env(VIVADO_SIM)             F:/crack/vivado2017.4_questasim_10.6c_lib
vmap secureip                   $env(VIVADO_SIM)/secureip
vmap simprims_ver               $env(VIVADO_SIM)/simprims_ver
vmap unifast                    $env(VIVADO_SIM)/unifast
vmap unifast_ver                $env(VIVADO_SIM)/unifast_ver
vmap unimacro                   $env(VIVADO_SIM)/unimacro
vmap unimacro_ver               $env(VIVADO_SIM)/unimacro_ver
vmap unisim                     $env(VIVADO_SIM)/unisim
vmap unisims_ver                $env(VIVADO_SIM)/unisims_ver

vmap blk_mem_gen_v8_4_1         $env(VIVADO_SIM)/blk_mem_gen_v8_4_1
#vmap $env(VIVADO_SIM)/
#vmap $env(VIVADO_SIM)/
#vmap $env(VIVADO_SIM)/

vlog -incr $env(VIVADO_SIM)/glbl.v;
vlog -incr -sv ../bench/axi4_bram_tb.sv
#vlog -incr -sv +define+SIMULATE  ../bench/axi4_bram_tb.sv
vlog -incr ../../axi_sim/axi_master.v

vlog -incr -sv ../ip/axi4_full_bram/sim/axi4_full_bram.v

#vlog +incdir+$env(UVM_SRC) -L mtiAvm -L mtiOvm -L mtiUvm -L mtiUPF hello_world.sv

vsim -t ps -novopt +notimingchecks \
                                    -L secureip \
                                    -L simprims_ver \
                                    -L unifast -L unifast_ver \
                                    -L unimacro -L unimacro_ver \
                                    -L unisim -L unisims_ver \
                                    -L blk_mem_gen_v8_4_1 \
                                    glbl \
                                    work.axi4_bram_tb

#vsim -t ns -novopt -sv_lib $env(UVM_DPI) work.hello_world_example

log -r /*
radix 16

#view -title {wang} wave
#具体模块需要添加的信号
do wave.do

run 100us
